CC=@CC@
INC=-I ../src/include -I/usr/local/include
LIBDPI=../src/lib/libndpi.a
CFLAGS+=@NDPI_CFLAGS@
LDFLAGS+=@NDPI_LDFLAGS@
LIB=$(LIBDPI) -lm @ADDITIONAL_LIBS@ @LIBS@

TOOLS=metric_anomaly

all: $(TOOLS)

metric_anomaly: metric_anomaly.c Makefile $(LIBDPI)
	$(CC) $(CFLAGS) $(CPPFLAGS) -g $(INC) $(LDFLAGS) metric_anomaly.c -o metric_anomaly $(LIB)

clean:
	/bin/rm -f *.o $(TOOLS) *~

distclean: clean
	/bin/rm -f Makefile

distdir:
	find . -type f -name '*.c' \
		-o -name '*.txt' | xargs -I'{}' cp '{}' '$(distdir)/{}'

install:
	@echo -n ""

check:
	true # nothing to do here
